package face.pay.security.config;

import face.pay.security.resolver.UserHandlerMethodArgumentResolver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import java.util.List;

/**
 * @Auther: zkj
 * @Date: 2019/7/11 11:19
 * @Description:
 */
@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {


    @Autowired
    UserHandlerMethodArgumentResolver userHandlerMethodArgumentResolver;


    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
        argumentResolvers.add(userHandlerMethodArgumentResolver);
    }
}
